# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'SimpleTimeDomainViewDiag.ui'
#
# Created: Tue Dec 13 17:45:17 2011
#      by: PyQt4 UI code generator 4.8.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_SimpleTimeDomianViewDiag(object):
    def setupUi(self, SimpleTimeDomianViewDiag):
        SimpleTimeDomianViewDiag.setObjectName(_fromUtf8("SimpleTimeDomianViewDiag"))
        SimpleTimeDomianViewDiag.resize(621, 592)
        self.pushButton = QtGui.QPushButton(SimpleTimeDomianViewDiag)
        self.pushButton.setGeometry(QtCore.QRect(520, 550, 75, 23))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.widget = QtGui.QWidget(SimpleTimeDomianViewDiag)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_3 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_3.addWidget(self.label_3)
        self.RefreshRateEdit = QtGui.QLineEdit(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.RefreshRateEdit.sizePolicy().hasHeightForWidth())
        self.RefreshRateEdit.setSizePolicy(sizePolicy)
        self.RefreshRateEdit.setObjectName(_fromUtf8("RefreshRateEdit"))
        self.horizontalLayout_3.addWidget(self.RefreshRateEdit)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_3)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.curvewidget = CurveWidget(SimpleTimeDomianViewDiag)
        self.curvewidget.setGeometry(QtCore.QRect(10, 40, 601, 243))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.curvewidget.sizePolicy().hasHeightForWidth())
        self.curvewidget.setSizePolicy(sizePolicy)
        self.curvewidget.setOrientation(QtCore.Qt.Horizontal)
        self.curvewidget.setObjectName(_fromUtf8("curvewidget"))
        self.tableWidget = QtGui.QTableWidget(SimpleTimeDomianViewDiag)
        self.tableWidget.setGeometry(QtCore.QRect(20, 380, 561, 135))
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setColumnCount(2)
        self.tableWidget.setRowCount(6)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        self.AutoRangeCheck = QtGui.QCheckBox(SimpleTimeDomianViewDiag)
        self.AutoRangeCheck.setGeometry(QtCore.QRect(290, 540, 72, 18))
        self.AutoRangeCheck.setChecked(True)
        self.AutoRangeCheck.setObjectName(_fromUtf8("AutoRangeCheck"))

        self.retranslateUi(SimpleTimeDomianViewDiag)
        QtCore.QMetaObject.connectSlotsByName(SimpleTimeDomianViewDiag)

    def retranslateUi(self, SimpleTimeDomianViewDiag):
        SimpleTimeDomianViewDiag.setWindowTitle(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Set Ranges", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Refresh Rate : ", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.verticalHeaderItem(0).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Channel 1", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.verticalHeaderItem(1).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Channel 2", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.verticalHeaderItem(2).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Channel 3", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.verticalHeaderItem(3).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Channel 4", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.verticalHeaderItem(4).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Channel 5", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.verticalHeaderItem(5).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Channel 6", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Temperature", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Plot", None, QtGui.QApplication.UnicodeUTF8))
        self.AutoRangeCheck.setText(QtGui.QApplication.translate("SimpleTimeDomianViewDiag", "Autoscale", None, QtGui.QApplication.UnicodeUTF8))

from guiqwt.plot import CurveWidget

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    SimpleTimeDomianViewDiag = QtGui.QDialog()
    ui = Ui_SimpleTimeDomianViewDiag()
    ui.setupUi(SimpleTimeDomianViewDiag)
    SimpleTimeDomianViewDiag.show()
    sys.exit(app.exec_())

